<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ZhangYi
 * Date: 11-9-3
 * Time: 下午8:07
 * To change this template use File | Settings | File Templates.
 */

class onlineSurveyComponents extends sfComponents
{
    public function executeOnlineSurveyEntry()
    {
        $this->survey = Doctrine_Core::getTable('OnlineSurvey')->createQuery('s')
                ->addWhere('s.is_on_top_b = ?', 1)->addOrderBy('s.online_survey_id desc')
                ->fetchOne();

    }

}
